<?php

return array(
    'router'   => array(
        'rules' => array(
            'GET | / | Index->index',
            'GET | /index | Index->index',
            'GET | /page/* | Index->page',
            'GET | /category/* | Index->category',
            'GET | /category/*/* | Index->category',
            'GET | /user/* | Index->user',
            'GET | /user/*/* | Index->user',
            'GET | /post/* | Blog->one',
            'POST | post/* | Blog->comment',
            'GET | /all | Index->all',
            'GET | /api.json | Api->all',
            'GET | /api/*.json | Api->get',
            'POST | /api/*.json | Api->post',
            'PUT | /api/*.json | Api->put',
            'DELETE | /api/*.json | Api->delete'
        )
    ),
    'view'     => array(
        'path' => 'Template/default/'
    ),
    'database' => array(
        'driver' => 'PDO',
        'type'   => 'sqlite',
        'file'   => dirname(__DIR__) . '/database.db'
    )
);